package com.examplemartin.jpademo.pojo.po.sell;

import com.examplemartin.jpademo.pojo.admin.BaseEntity;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OrderColumn;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 销售缺货单实体
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "t_short")
public class ShortPO extends BaseEntity implements Serializable {

  // 销售单 one
  @ManyToOne
  private SellPO sellPO;

  // 销售缺货单明细 list
  @OrderColumn
  @OneToMany(mappedBy = "shortPO")
  private List<ShortDetailPO> shortDetailPOList;


}
